using System;
using Diagram.Model;
using Diagram.Tools;
using Diagram.View;

namespace PetriDiagram.Tools
{
    [Serializable]
    public class PetriNetConnectionTool : ConnectionTool
    {
        public PetriNetConnectionTool( EntityManager entityManager, Diagram.View.Diagram diagram, Relation relation )
            : base( entityManager, diagram, relation )
        {
            Name = "Connect";
        }

        protected override void OnEndConnection( ConnectionShape connection )
        {
            Diagram.SendToBack( connection );
            base.OnEndConnection( connection );
        }
    }
}
